﻿using Abp.Application.Services.Dto;
using Abp.AutoMapper;
using MVlog.Core;
using System;
using System.Collections.Generic;
using System.Text;

namespace MVlog.Application
{
    [AutoMap(typeof(Article))]
    public class ArticleDto:EntityDto<long>
    {
        /// <summary>
        /// 标题
        /// </summary>
        public string Title { get; set; }

        /// <summary>
        /// 内容
        /// </summary>
        public string Content { get; set; }

        /// <summary>
        /// 发布时间
        /// </summary>
        public DateTime PublishedTime { get; set; }

        /// <summary>
        /// 发布标记 （true- 已发布；false- 未发布）
        /// </summary>
        public bool PublishRemark { get; set; }

        /// <summary>
        /// 标签
        /// </summary>
        public string TagIds { get; set; }

        //[ForeignKey(nameof(TagId))]
        //public List<Tag> Tags { get; set; }

        /// <summary>
        /// 评论数
        /// </summary>
        public int Commentnum { get; set; }

        /// <summary>
        ///浏览数 
        /// </summary>
        public int Viewnum { get; set; }

        /// <summary>
        /// 发布人Id
        /// </summary>
        public long? CreatorUserId { get; set; }

        public string CreatorUserName { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime CreationTime { get; set; }

    }
}
